{% extends "base.html" %} {% block title %}My Appointments - Quick Care Connect{% endblock %} {% block content %}

My Appointments

Appointments ({{ appointments|length }})
{% if appointments %}
{% for appointment in appointments %} {% endfor %}
Patient Date & Time Type Disease Category Status Charges Actions
{{ appointment.patient.user.name }}
{{ appointment.patient.user.email }}
{{ appointment.appointment_date.strftime('%B %d, %Y') }}
{{ appointment.appointment_time.strftime('%I:%M %p') }}
{{ appointment.appointment_type.title() }} {{ appointment.disease_category }} {% if appointment.status == 'approved' and appointment.payment_status == 'approved' %} Approved (Payment Done) {% elif appointment.status == 'completed' %} Completed {% elif appointment.status == 'approved' %} Approved {% elif appointment.status == 'pending' %} Pending {% elif appointment.status in ['rejected', 'cancelled', 'no_show'] %} {{ appointment.status.replace('_', ' ').title() }} {% elif 'expired' in appointment.status %} {% if appointment.status == 'expired_mutual_noshow' %} Mutual No-Show {% elif appointment.status == 'expired_patient_noshow' %} Patient Missed {% elif appointment.status == 'expired_provider_failure' %} You Missed {% else %} {{ appointment.status.replace('_', ' ').title() }} {% endif %} {% else %} {{ appointment.status.title() }} {% endif %} PKR {{ "%.0f"|format(appointment.charges) }}
View {% if appointment.status == 'pending' %}
{% elif appointment.status in ['approved', 'completed', 'completed_pending_review', 'disputed'] %} {% if appointment.payment_status == 'approved' and appointment.status in ['approved', 'completed'] %} {% if appointment.status == 'completed' %}View Chat{% else %}Chat{% endif %} {% endif %} {% if appointment.prescription %} View Rx {% endif %} {% if appointment.status == 'approved' and not appointment.doctor_completed %} {% if appointment.prescription %} Write Rx & Complete {% else %} {% endif %} {% elif appointment.status == 'completed_pending_review' %} Pending Review {% elif appointment.status == 'disputed' %} Disputed {% endif %} {% endif %}
{% else %}
No appointments found

You don't have any appointments matching your filters.

{% endif %}
{% endblock %}